"""
@Author: marco
@Date: 2021-6-17 12:26:32
@description: 服务启动接口
@LastEditors  : marco
@LastEditTime : 2021-6-17 12:26:32
"""
from flask_cors import CORS
from app import app
from app.server.api import api
import environment

environment.init("restful")
app.register_blueprint(api, url_prefix='/api')
app = app
CORS(app, supports_credentials=True)
if __name__ == '__main__':
    app.debug = False
    app.run(host='0.0.0.0', port=502)
